package com.xiaoshuidi.cloud.module.rooms.service;

import com.xiaoshuidi.cloud.framework.common.pojo.CommonResult;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xiaoshuidi.cloud.module.rooms.controller.admin.floor.vo.AddFloorReqVo;
import com.xiaoshuidi.cloud.module.rooms.controller.admin.floor.vo.AddFloorRespVo;
import com.xiaoshuidi.cloud.module.rooms.controller.admin.floor.vo.EditFloorRespVo;
import com.xiaoshuidi.cloud.module.rooms.pojo.RoomFloor;

import java.util.List;

public interface RoomFloorService extends IService<RoomFloor> {
    CommonResult<Boolean> insertBatch(List<RoomFloor> roomFloors);

    /**
     * 修改楼层信息
     * @param floorId 楼层id
     * @param num 楼层
     * @param userId 登录用户
     * @return
     */
    CommonResult<EditFloorRespVo> edit(Long floorId, Integer num, Long userId);

    /**
     * 删除楼层
     * @param floorId 楼层id
     * @param userId
     * @return
     */
    CommonResult<Boolean> delete(Long floorId, Long userId);
}
